<br><br>
<div id="wrap" class="clearfix">

    <div id="aside">

        <ol>
            <li><span>1</span><?= lang ( 'checkout.your.shopping.cart' ) ?></li>
            <li><span>2</span><?= lang ( 'checkout.payment.info' ) ?></li>
            <li class="active"><span>3</span><?= lang ( 'checkout.process.your.order' ) ?></li>
        </ol>

    </div><!-- / Aside -->

    <div id="main">

        <div class="title">
            <?
                if ( isset ( $show_paid ) )
                {
                    if ( $transaction->result == "OK" )
                    {
                        ?>
                        <h2><?= lang ( 'checkout.your.patment.successful' ) ?> </h2>
                        <?
                    }
                    else
                    {
                        ?>
                        <h2><?= lang ( 'checkout.your.patment.declined' ) ?> </h2> <?
                    }
                }
                else
                {
                    ?>
                    <h2><?= lang ( 'checkout.process.your.order' ) ?></h2>
                <? } ?>
        </div>

        <div class="inner-form customer-info">

            <h3><span><?= lang ( 'checkout.your.order' ) ?></span></h3>
            <dl>
                <dt><?= $order->object_name ?> <span><? echo $order->reservation->price_total ?>€</span></dt>
                <dd>
                    <ul>
                        <li><span class="capitalize"><?= lang ( 'days' ) ?>:</span>            <span><?= $order->reservation->duration ?> </span></li>
                        <li><span><?= lang ( 'secure.location' ) ?>:</span> <span> <?= $order->destination_name ?>, Montenegro</span></li>
                        <li><span><?= lang ( 'search.check_in_short' ) ?>:</span> <span> <?= date ( 'd.m.Y', $order->reservation->start ) ?><? if ( isset ( $order->object_from ) ) echo " - " . $order->object_from . "h" ?></span></li>
                        <li><span><?= lang ( 'search.check_out_short' ) ?>:</span> <span> <?= date ( 'd.m.Y', $order->reservation->end ) ?><? if ( isset ( $order->object_to ) ) echo " - " . $order->object_to . "h" ?></span></li>
                    </ul>
                </dd>
            </dl>
            <dl>
                <dt class="capitalize"><?= lang ( 'persons' ) ?></dt>
                <dd>
                    <ul>

                        <li><span><?= lang ( 'adults' ) ?>:</span>            <span><?= $order->reservation->nr_adults ?></span></li>
                        <?
                            if ( $order->reservation->nr_childrens > 0 ):
                                ?>
                                <li><span><?= lang ( 'children' ) ?>:</span>            <span><?= $order->reservation->nr_childrens ?></span></li>
                                <?
                            endif;
                        ?>    
                    </ul>
                </dd>
            </dl>

            <dl>
                <dt class="capitalize"><?= lang ( 'secure.room' ) ?></dt>
                <dd>
                    <ul>
                        <?
                            $this->load->view ( 'rentacar/parts/checkout_list_item_location', array ('desc' => lang ( 'secure.room' ) . ":", 'text' => lang ( "room." . underscore ( $order->room->name ) ) . " " . $order->room->description) );

                            $this->load->view ( 'rentacar/parts/checkout_list_item_location', array ('desc' => lang ( 'secure.service' ) . ":", 'text' => $order->room->service_name) );
                        ?>        
                    </ul>

                </dd>
            </dl>



            <?
                if ( isset ( $show_paid ) )
                {
                    if ( $transaction->result != "OK" )
                        $order->reservation->price_total = 0;
                    ?>
                    <p class="total">Paid: <span><?= $order->reservation->price_total ?>€</span></p>
                    <?
                }
                else
                {
                    ?>
                    <p class="total"  <? if ( isset ( $show_paid ) ) echo 'style="margin-bottom: 7px; border-bottom:0"'; ?>><?= lang ( 'total' ) ?>: <span><?= $order->reservation->price_total ?>€</span></p>

                <? } ?>

            <h3><span><?= lang ( 'checkout.contact.information' ) ?></span></h3>
            <dl>
                <dd>
                    <ul>
                        <li><span><?= lang ( 'checkout.contact.name' ) ?>:</span>        <span><?= $order->passenger->name ?></span></li>
                        <li><span><?= lang ( 'checkout.email' ) ?>:</span>    <span><?= $order->passenger->email ?></span></li>
                        <li><span><?= lang ( 'checkout.telephone' ) ?>:</span>    <span><?= $order->passenger->mobile_phone ?></span></li>
                        <li><span><?= lang ( 'checkout.note' ) ?>:</span>        <span><?
                                    if ( $order->reservation->service_description == 0 )
                                    {
                                        echo 'Empty';
                                    }
                                    else
                                        echo $order->reservation->service_description;
                                ?></span></li>
                    </ul>
                </dd>
            </dl>

            <h3><span><?= lang ( 'checkout.your.address' ) ?></span></h3>
            <dl>
                <dd>
                    <ul>
                        <li><span><?= lang ( 'checkout.address' ) ?>:</span>        <span><?= $order->passenger->address ?></span></li>
                        <li><span><?= lang ( 'checkout.city' ) ?>:</span>    <span><?= $order->passenger->birth_place ?></span></li>
                        <li><span><?= lang ( 'checkout.zip' ) ?>:</span>    <span><?= $order->passenger->zip_code ?></span></li>
                        <li><span><?= lang ( 'checkout.country' ) ?>:</span>    <span><?= $order->passenger->country ?></span></li>

                    </ul>
                </dd>
            </dl>

            <p class="terms"><?= lang ( 'checkout.agree.terms.conditions' ) ?> <?= lang ( 'menu.terms.conditions' ) ?> <span><?= lang ( 'checkout.yes' ) ?></span></p>

        </div>

        <?
            if ( !isset ( $show_paid ) )
            {
                ?>

                <div class="buttons-cart customer-info-button">
                    <a href="http://www.informacionisistem.com/payservice/service/pay/<?= $order->reservation->ID ?>/hotels/<?= $this->lang->lang () ?>" class="submit_button"><?= lang ( 'checkout.pay' ) ?></a>
                </div>

                <?
            }
            else
                echo "<br/><br/><br/>";
        ?>

    </div><!-- / Mian -->

</div><!-- / Wrap -->